#ifndef ZIGBEE3LISTXML_H
#define ZIGBEE3LISTXML_H

#include <QObject>
#include <QStringList>
#include "BaseXml.h"
#include "DataType/ZigbeeStruct.h"
#include "DataType/Zigbee3Struct.h"
#include <QMap>
class Zigbee3ListXml : public BaseXml<Zigbee3ListXml>
{
public:

    friend class BaseXml<Zigbee3ListXml>;

    bool parser();
    bool modify(const quint8 &number, const Zigbee3Struct &zigbee);
    bool SetData(Zigbee3Struct Struct);
    bool SetDelete(QString nwk);
    bool clear();
    QByteArray GetZigbeeVersion();
    QList<Zigbee3Struct> zigbeeList(const QList<ControlPointStruct> &sourcePointList);
    QMap<quint16,int>onTriggerTime;
    QMap<quint16,int>offTriggerTime;
    QList<Zigbee3Struct>zigbee3List();
    QByteArray ZigbeeVersion();
    void SetZigbeeVersion(QByteArray version);

private:
    enum{PointMaxSize = 15};
    Zigbee3ListXml();
    QByteArray m_ZigbeeVersion;
    QList<Zigbee3Struct> m_zigbee3List;


};
#endif // ZIGBEE3LISTXML_H
